package com.ywgt.service;

import com.github.pagehelper.Page;
import com.ywgt.pojo.Comment;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 评论表 服务类
 * </p>
 *
 * @author yiping
 * @since 2021-03-13
 */
public interface CommentService extends IService<Comment> {

    Page<Comment> getComments(String userId, String valueId, int page, int limit, String sort, String order);

    boolean reply(Map<String,Object> body);

    Page<Comment> getCommentList(Integer valueId, Integer type, Integer showType, Integer page, Integer size);

    String getReply(Integer id);

    List<Comment> getByGoodsId(Integer id, int i, int i1);
}
